using System;
using System.ComponentModel;
using System.Drawing;
using System.Threading;
using System.Windows.Forms;

namespace ICP_MS.Plugin.Experiment;

public class FormConfig : Form
{
	private ExperimentDatas experiment = null;

	private ExperimentDB db = null;

	private Thread threadRefresh;

	private IContainer components = null;

	private GroupBox groupBox1;

	private GroupBox gbInject;

	private DataGridView dgvInstrument;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;

	private GroupBox groupBox2;

	private Label label8;

	private Label label3;

	private NumericUpDown nudNormal;

	private NumericUpDown nudFast;

	private Label label2;

	private Label label1;

	private GroupBox groupBox3;

	private Label label6;

	private Label label7;

	private CheckBox chkUptake;

	private NumericUpDown nudUptake;

	private Label label5;

	private Label label4;

	private CheckBox chkWash;

	private NumericUpDown nudWash;

	private DataGridViewTextBoxColumn Column1;

	private DataGridViewTextBoxColumn Column2;

	private DataGridViewTextBoxColumn Column3;

	private DataGridViewTextBoxColumn Column4;

	private DataGridViewTextBoxColumn Column5;

	private DataGridViewTextBoxColumn Column6;

	private DataGridViewTextBoxColumn Column7;

	private DataGridViewTextBoxColumn Column8;

	private DataGridViewTextBoxColumn Column9;

	private DataGridViewTextBoxColumn Column10;

	private CheckBox chkAutoSample;

	private Label label9;

	private Label label10;

	private CheckBox chkStable;

	private NumericUpDown nudStableTime;

	private TextBox txtConfig;

	private CheckBox checkBox1;

	private CheckBox chk_AutoMisfire;

	private GroupBox groupBox4;

	private Label label12;

	private NumericUpDown nudWashTime;

	private Label label13;

	private Label label14;

	public FormConfig()
	{
		InitializeComponent();
	}

	public void SetParams(ExperimentDatas experiment, ExperimentDB db)
	{
		this.experiment = experiment;
		this.db = db;
	}

	private void FormConfig_Load(object sender, EventArgs e)
	{
		ApplyResources();
		for (int i = 0; i < 6; i++)
		{
			dgvInstrument.Rows.Add();
		}
		dgvInstrument.Rows[0].DefaultCellStyle.BackColor = Color.FromKnownColor(KnownColor.LightGray);
		dgvInstrument.Rows[2].DefaultCellStyle.BackColor = Color.FromKnownColor(KnownColor.LightGray);
		dgvInstrument.Rows[4].DefaultCellStyle.BackColor = Color.FromKnownColor(KnownColor.LightGray);
		SetInstrumentDatas();
		SetInject();
		chkAutoSample.Checked = experiment.AutosampleTable.autoSample;
		chk_AutoMisfire.Checked = experiment.bUseAutoMisfire;
		if (experiment.AutosampleTable.autoSample)
		{
			chk_AutoMisfire.Enabled = true;
			groupBox4.Enabled = true;
		}
		else
		{
			chk_AutoMisfire.Enabled = false;
			groupBox4.Enabled = false;
		}
		ApplyEnable(null, null);
		experiment.applyEnable += ApplyEnable;
		threadRefresh = new Thread(RefreshInstrumentDatas);
		threadRefresh.IsBackground = true;
		threadRefresh.Start();
		PermissionManagement();
	}

	private void ApplyEnable(object sender, EventArgs e)
	{
		if (experiment.Scan.currentStatus != 0)
		{
			gbInject.Enabled = false;
		}
	}

	private void ApplyResources()
	{
		Text = Lang.Txt("FormConfig.Title.Text");
		gbInject.Text = Lang.Txt("FormConfig.GroupBox.SampleEnter.Text");
		groupBox1.Text = Lang.Txt("FormConfig.GroupBox.InstrumentCondition.Text");
		groupBox2.Text = Lang.Txt("FormConfig.GroupBox.Pump.Text");
		groupBox3.Text = Lang.Txt("FormConfig.GroupBox.EnterSample.Text");
		label1.Text = Lang.Txt("FormConfig.TakeUp.Text");
		label2.Text = Lang.Txt("FormConfig.Normal.Text");
		label4.Text = Lang.Txt("FormConfig.Time.Text");
		label7.Text = Lang.Txt("FormConfig.Time.Text");
		chkUptake.Text = Lang.Txt("FormConfig.TakeUp.Text");
		chkWash.Text = Lang.Txt("FormConfig.Wash.Text");
		label10.Text = Lang.Txt("FormConfig.Time.Text");
		chkStable.Text = Lang.Txt("SeaExperiment.FormConfig.Stablize");
		chkAutoSample.Text = Lang.Txt("SeaExperiment.MethodList.FormSeqConfig.chkAutoSampler");
	}

	private void SetInstrumentDatas()
	{
		dgvInstrument[0, 0].Value = Lang.Txt("FormMinor.Horizontal.Text");
		dgvInstrument[1, 0].Value = Lang.Txt("FormMinor.Vertical.Text");
		dgvInstrument[2, 0].Value = Lang.Txt("FormMajor.Z.Text");
		dgvInstrument[3, 0].Value = Lang.Txt("FormMajor.Nebulizer.Text");
		dgvInstrument[4, 0].Value = Lang.Txt("FormMajor.Power.Text");
		dgvInstrument[5, 0].Value = Lang.Txt("FormMajor.Extraction.Text");
		dgvInstrument[6, 0].Value = Lang.Txt("FormMajor.Lens1.Text");
		dgvInstrument[7, 0].Value = Lang.Txt("FormMinor.Lens2.Text");
		dgvInstrument[8, 0].Value = Lang.Txt("FormMajor.HexPolebias.Text");
		dgvInstrument[9, 0].Value = Lang.Txt("FormMinor.Lens3.Text");
		dgvInstrument[0, 1].Value = experiment.CurrentPlat.X.ToString("F2");
		dgvInstrument[1, 1].Value = experiment.CurrentPlat.Z.ToString("F2");
		dgvInstrument[2, 1].Value = experiment.CurrentPlat.Y.ToString("F2");
		dgvInstrument[3, 1].Value = experiment.CurrentPlasma.Nebuliser.ToString("F2");
		dgvInstrument[4, 1].Value = experiment.CurrentPlasma.Power.ToString("F2");
		dgvInstrument[5, 1].Value = experiment.CurrentLens.Ex.ToString("F2");
		dgvInstrument[6, 1].Value = experiment.CurrentLens.L1.ToString("F2");
		dgvInstrument[7, 1].Value = experiment.CurrentLens.L2.ToString("F2");
		dgvInstrument[8, 1].Value = experiment.CurrentLens.Pole.ToString("F2");
		dgvInstrument[9, 1].Value = experiment.CurrentLens.L3.ToString("F2");
		dgvInstrument[0, 2].Value = Lang.Txt("FormMajor.Focus.Text");
		dgvInstrument[1, 2].Value = Lang.Txt("FormMajor.D1.Text");
		dgvInstrument[2, 2].Value = Lang.Txt("FormMinor.D2.Text");
		dgvInstrument[3, 2].Value = Lang.Txt("FormRF.QuadBias.Text");
		dgvInstrument[4, 2].Value = Lang.Txt("FormRF.Prebarbias.Text");
		dgvInstrument[5, 2].Value = Lang.Txt("FormMinor.CoolGas.Text");
		dgvInstrument[6, 2].Value = Lang.Txt("FormMinor.Auxilury.Text");
		dgvInstrument[7, 2].Value = Lang.Txt("SeaExperiment.FormConfig.Diluent");
		dgvInstrument[8, 2].Value = Lang.Txt("FormMajor.Collision.Text");
		dgvInstrument[9, 2].Value = Lang.Txt("FormMajor.Collision2.Text");
		dgvInstrument[0, 3].Value = experiment.CurrentLens.F.ToString("F2");
		dgvInstrument[1, 3].Value = experiment.CurrentLens.D1.ToString("F2");
		dgvInstrument[2, 3].Value = experiment.CurrentLens.D2.ToString("F2");
		dgvInstrument[3, 3].Value = experiment.CurrentRFS.quadPole.ToString("F2");
		dgvInstrument[4, 3].Value = experiment.CurrentRFS.prePole.ToString("F2");
		dgvInstrument[5, 3].Value = experiment.CurrentPlasma.Cool.ToString("F2");
		dgvInstrument[6, 3].Value = experiment.CurrentPlasma.Auxiliary.ToString("F2");
		dgvInstrument[7, 3].Value = experiment.CurrentPlasma.Appendix1.ToString("F2");
		dgvInstrument[8, 3].Value = experiment.CurrentPlasma.Collision.ToString("F2");
		dgvInstrument[9, 3].Value = experiment.CurrentPlasma.Collision2.ToString("F2");
		dgvInstrument[0, 4].Value = Lang.Txt("FormMinor.DA.Text");
		dgvInstrument[1, 4].Value = Lang.Txt("FormMinor.QE.Text");
		dgvInstrument[2, 4].Value = Lang.Txt("FormRF.SixPoleCoefficient.Text");
		if (Detector.detectorConfig.IsNewBoard)
		{
			dgvInstrument[3, 4].Value = "HVP";
			dgvInstrument[4, 4].Value = "HVN";
			dgvInstrument[5, 4].Value = "Gate";
			dgvInstrument[6, 4].Value = "";
		}
		else
		{
			dgvInstrument[3, 4].Value = "";
			dgvInstrument[4, 4].Value = "";
			dgvInstrument[5, 4].Value = "";
			dgvInstrument[6, 4].Value = Lang.Txt("FormRF.MultiplierVoltage.Text");
		}
		dgvInstrument[0, 5].Value = experiment.CurrentLens.DA.ToString("F2");
		dgvInstrument[1, 5].Value = experiment.CurrentLens.QE.ToString("F2");
		dgvInstrument[2, 5].Value = experiment.CurrentRFS.hexPara.ToString("F2");
		if (!Detector.detectorConfig.IsNewBoard)
		{
			dgvInstrument[3, 5].Value = "";
			dgvInstrument[4, 5].Value = "";
			dgvInstrument[5, 5].Value = "";
			dgvInstrument[6, 5].Value = experiment.CurrentLens.Etp.ToString("F2");
		}
		else
		{
			dgvInstrument[3, 5].Value = experiment.CurrentRFS.HVP.ToString("F0");
			dgvInstrument[4, 5].Value = experiment.CurrentRFS.HVN.ToString("F0");
			dgvInstrument[5, 5].Value = experiment.CurrentRFS.Gate.ToString("F0");
			dgvInstrument[6, 5].Value = "";
		}
	}

	private void RefreshInstrumentDatas()
	{
		while (dgvInstrument.Enabled)
		{
			dgvInstrument[0, 0].Value = Lang.Txt("FormMinor.Horizontal.Text");
			dgvInstrument[1, 0].Value = Lang.Txt("FormMinor.Vertical.Text");
			dgvInstrument[2, 0].Value = Lang.Txt("FormMajor.Z.Text");
			dgvInstrument[3, 0].Value = Lang.Txt("FormMajor.Nebulizer.Text");
			dgvInstrument[4, 0].Value = Lang.Txt("FormMajor.Power.Text");
			dgvInstrument[5, 0].Value = Lang.Txt("FormMajor.Extraction.Text");
			dgvInstrument[6, 0].Value = Lang.Txt("FormMajor.Lens1.Text");
			dgvInstrument[7, 0].Value = Lang.Txt("FormMinor.Lens2.Text");
			dgvInstrument[8, 0].Value = Lang.Txt("FormMajor.HexPolebias.Text");
			dgvInstrument[9, 0].Value = Lang.Txt("FormMinor.Lens3.Text");
			dgvInstrument[0, 1].Value = experiment.CurrentPlat.X.ToString("F2");
			dgvInstrument[1, 1].Value = experiment.CurrentPlat.Z.ToString("F2");
			dgvInstrument[2, 1].Value = experiment.CurrentPlat.Y.ToString("F2");
			dgvInstrument[3, 1].Value = experiment.CurrentPlasma.Nebuliser.ToString("F2");
			dgvInstrument[4, 1].Value = experiment.CurrentPlasma.Power.ToString("F2");
			dgvInstrument[5, 1].Value = experiment.CurrentLens.Ex.ToString("F2");
			dgvInstrument[6, 1].Value = experiment.CurrentLens.L1.ToString("F2");
			dgvInstrument[7, 1].Value = experiment.CurrentLens.L2.ToString("F2");
			dgvInstrument[8, 1].Value = experiment.CurrentLens.Pole.ToString("F2");
			dgvInstrument[9, 1].Value = experiment.CurrentLens.L3.ToString("F2");
			dgvInstrument[0, 2].Value = Lang.Txt("FormMajor.Focus.Text");
			dgvInstrument[1, 2].Value = Lang.Txt("FormMajor.D1.Text");
			dgvInstrument[2, 2].Value = Lang.Txt("FormMinor.D2.Text");
			dgvInstrument[3, 2].Value = Lang.Txt("FormRF.QuadBias.Text");
			dgvInstrument[4, 2].Value = Lang.Txt("FormRF.Prebarbias.Text");
			dgvInstrument[5, 2].Value = Lang.Txt("FormMinor.CoolGas.Text");
			dgvInstrument[6, 2].Value = Lang.Txt("FormMinor.Auxilury.Text");
			dgvInstrument[7, 2].Value = Lang.Txt("SeaExperiment.FormConfig.Diluent");
			dgvInstrument[8, 2].Value = Lang.Txt("FormMajor.Collision.Text");
			dgvInstrument[9, 2].Value = Lang.Txt("FormMajor.Collision2.Text");
			dgvInstrument[0, 3].Value = experiment.CurrentLens.F.ToString("F2");
			dgvInstrument[1, 3].Value = experiment.CurrentLens.D1.ToString("F2");
			dgvInstrument[2, 3].Value = experiment.CurrentLens.D2.ToString("F2");
			dgvInstrument[3, 3].Value = experiment.CurrentRFS.quadPole.ToString("F2");
			dgvInstrument[4, 3].Value = experiment.CurrentRFS.prePole.ToString("F2");
			dgvInstrument[5, 3].Value = experiment.CurrentPlasma.Cool.ToString("F2");
			dgvInstrument[6, 3].Value = experiment.CurrentPlasma.Auxiliary.ToString("F2");
			dgvInstrument[7, 3].Value = experiment.CurrentPlasma.Appendix1.ToString("F2");
			dgvInstrument[8, 3].Value = experiment.CurrentPlasma.Collision.ToString("F2");
			dgvInstrument[9, 3].Value = experiment.CurrentPlasma.Collision2.ToString("F2");
			dgvInstrument[0, 4].Value = Lang.Txt("FormMinor.DA.Text");
			dgvInstrument[1, 4].Value = Lang.Txt("FormMinor.QE.Text");
			dgvInstrument[2, 4].Value = Lang.Txt("FormRF.SixPoleCoefficient.Text");
			if (Detector.detectorConfig.IsNewBoard)
			{
				dgvInstrument[3, 4].Value = "HVP";
				dgvInstrument[4, 4].Value = "HVN";
				dgvInstrument[5, 4].Value = "Gate";
				dgvInstrument[6, 4].Value = "";
			}
			else
			{
				dgvInstrument[3, 4].Value = "";
				dgvInstrument[4, 4].Value = "";
				dgvInstrument[5, 4].Value = "";
				dgvInstrument[6, 4].Value = Lang.Txt("FormRF.MultiplierVoltage.Text");
			}
			dgvInstrument[0, 5].Value = experiment.CurrentLens.DA.ToString("F2");
			dgvInstrument[1, 5].Value = experiment.CurrentLens.QE.ToString("F2");
			dgvInstrument[2, 5].Value = experiment.CurrentRFS.hexPara.ToString("F2");
			if (!Detector.detectorConfig.IsNewBoard)
			{
				dgvInstrument[3, 5].Value = "";
				dgvInstrument[4, 5].Value = "";
				dgvInstrument[5, 5].Value = "";
				dgvInstrument[6, 5].Value = experiment.CurrentLens.Etp.ToString("F2");
			}
			else
			{
				dgvInstrument[3, 5].Value = experiment.CurrentRFS.HVP.ToString("F0");
				dgvInstrument[4, 5].Value = experiment.CurrentRFS.HVN.ToString("F0");
				dgvInstrument[5, 5].Value = experiment.CurrentRFS.Gate.ToString("F0");
				dgvInstrument[6, 5].Value = "";
			}
			chkAutoSample.Checked = experiment.AutosampleTable.autoSample;
			Thread.Sleep(1000);
		}
	}

	public void SaveInject()
	{
		PlatManager.injector.Wash = chkWash.Checked;
		PlatManager.injector.Uptake = chkUptake.Checked;
		PlatManager.injector.WashTime = decimal.ToInt32(nudWash.Value);
		PlatManager.injector.UptakeTime = decimal.ToInt32(nudUptake.Value);
		PlatManager.injector.PeristFast = decimal.ToInt32(nudFast.Value * 10m);
		PlatManager.injector.Perist = decimal.ToInt32(nudNormal.Value * 10m);
		PlatManager.injector.AutoWashTime = decimal.ToInt32(nudWashTime.Value);
	}

	private void SetInject()
	{
		chkWash.Checked = experiment.CurrentInjector.Wash;
		chkUptake.Checked = experiment.CurrentInjector.Uptake;
		nudWash.Value = experiment.CurrentInjector.WashTime;
		nudUptake.Value = experiment.CurrentInjector.UptakeTime;
		nudFast.Value = (decimal)((double)experiment.CurrentInjector.PeristFast / 10.0);
		nudNormal.Value = (decimal)((double)PlatManager.Instrumentinjector.Perist / 10.0);
		chkStable.Checked = experiment.StableConfig.Stable;
		nudStableTime.Value = experiment.StableConfig.Time;
		nudWashTime.Value = experiment.CurrentInjector.AutoWashTime;
	}

	private void chkWash_CheckedChanged(object sender, EventArgs e)
	{
		if (experiment.IsRun)
		{
			PlatManager.injector.Wash = chkWash.Checked;
		}
		experiment.CurrentInjector.Wash = chkWash.Checked;
	}

	private void chkUptake_CheckedChanged(object sender, EventArgs e)
	{
		if (experiment.IsRun)
		{
			PlatManager.injector.Uptake = chkUptake.Checked;
		}
		experiment.CurrentInjector.Uptake = chkUptake.Checked;
	}

	private void nudWash_ValueChanged(object sender, EventArgs e)
	{
		if (experiment.IsRun)
		{
			PlatManager.injector.WashTime = decimal.ToInt32(nudWash.Value);
		}
		experiment.CurrentInjector.WashTime = decimal.ToInt32(nudWash.Value);
	}

	private void nudUptake_ValueChanged(object sender, EventArgs e)
	{
		if (experiment.IsRun)
		{
			PlatManager.injector.UptakeTime = decimal.ToInt32(nudUptake.Value);
		}
		experiment.CurrentInjector.UptakeTime = decimal.ToInt32(nudUptake.Value);
	}

	private void nudFast_ValueChanged(object sender, EventArgs e)
	{
		if (experiment.IsRun)
		{
			PlatManager.injector.PeristFast = decimal.ToInt32(nudFast.Value * 10m);
		}
		experiment.CurrentInjector.PeristFast = decimal.ToInt32(nudFast.Value * 10m);
	}

	private void nudNormal_ValueChanged(object sender, EventArgs e)
	{
		if (experiment.IsRun)
		{
			PlatManager.injector.Perist = decimal.ToInt32(nudNormal.Value * 10m);
		}
		experiment.CurrentInjector.Perist = decimal.ToInt32(nudNormal.Value * 10m);
	}

	private void chkAutoSample_CheckedChanged(object sender, EventArgs e)
	{
		experiment.AutosampleTable.autoSample = chkAutoSample.Checked;
		experiment.OnSamplerChanged();
	}

	private void chkStable_CheckedChanged(object sender, EventArgs e)
	{
		experiment.StableConfig.Stable = chkStable.Checked;
	}

	private void nudStableTime_ValueChanged(object sender, EventArgs e)
	{
		experiment.StableConfig.Time = Convert.ToInt32(nudStableTime.Value);
	}

	private void FormConfig_FormClosing(object sender, FormClosingEventArgs e)
	{
		if (threadRefresh != null && threadRefresh.IsAlive)
		{
			threadRefresh.Abort();
		}
		experiment.applyEnable -= ApplyEnable;
	}

	private void LoadConfigration(string name)
	{
		int platId = experiment.CurrentPlat.id;
		int lensId = experiment.CurrentLens.id;
		int plasmaId = experiment.CurrentPlasma.Id;
		int rfsId = experiment.CurrentRFS.id;
		X2Lens lens = DataBase.Instance.GetX2Lens(name);
		if (lens != null)
		{
			experiment.CurrentLens = lens;
			experiment.CurrentLens.id = lensId;
		}
		else
		{
			Log.InsertLog("Configration", "Load lens params error.", "", (Severity)3);
		}
		PlasmaPara plasma = DataBase.Instance.GetPlasma(name);
		if (plasma != null)
		{
			experiment.CurrentPlasma = plasma;
			experiment.CurrentPlasma.Id = plasmaId;
		}
		else
		{
			Log.InsertLog("Configration", "Load plasma params error.", "", (Severity)3);
		}
		RFS rfs = DataBase.Instance.GetRFS(name);
		if (rfs != null)
		{
			experiment.CurrentRFS = rfs;
			experiment.CurrentRFS.id = rfsId;
		}
		else
		{
			Log.InsertLog("Configration", "Load rf params error.", "", (Severity)3);
		}
		InstrumentInjector injector = DataBase.Instance.GetInjector(name);
		if (injector != null)
		{
			experiment.CurrentInjector.Perist = injector.Perist;
			experiment.CurrentInjector.PeristFast = injector.PeristFast;
			experiment.CurrentInjector.PeristSlow = injector.PeristSlow;
		}
		else
		{
			PlatManager.Instrumentinjector.Perist = 350;
		}
		Platform plat = DataBase.Instance.GetPlatform(name);
		if (plat != null)
		{
			experiment.CurrentPlat = plat.Clone();
		}
		else
		{
			Log.InsertLog("Configration", "Load platform params error.", "", (Severity)3);
		}
	}

	private void txtConfig_MouseDoubleClick(object sender, MouseEventArgs e)
	{
		FormInstrumentOpen dlg = new FormInstrumentOpen();
		dlg.StartPosition = FormStartPosition.CenterParent;
		if (dlg.ShowDialog() == DialogResult.OK && dlg.CurrentConfig != null)
		{
			txtConfig.Text = dlg.CurrentConfig.Description;
			LoadConfigration(dlg.CurrentConfig.Time);
			Platform plat = DataBase.Instance.GetPlatform(dlg.CurrentConfig.Time);
		}
	}

	private void checkBox1_CheckedChanged(object sender, EventArgs e)
	{
		experiment.bUseAbnormalMethod = checkBox1.Checked;
	}

	private void PermissionManagement()
	{
		if (UserManager.CurrentUser.authority <= 1)
		{
			checkBox1.Visible = false;
		}
		else
		{
			checkBox1.Visible = true;
		}
	}

	private void btn_AutoMisfire_CheckedChanged(object sender, EventArgs e)
	{
		experiment.bUseAutoMisfire = chk_AutoMisfire.Checked;
	}

	private void chkAutoSample_CheckStateChanged(object sender, EventArgs e)
	{
		if (!chkAutoSample.Checked)
		{
			chk_AutoMisfire.Enabled = false;
			groupBox4.Enabled = false;
		}
		else
		{
			chk_AutoMisfire.Enabled = true;
			groupBox4.Enabled = true;
		}
	}

	private void nudWashTime_ValueChanged(object sender, EventArgs e)
	{
		if (experiment.IsRun)
		{
			PlatManager.injector.AutoWashTime = decimal.ToInt32(nudWashTime.Value);
		}
		experiment.CurrentInjector.AutoWashTime = decimal.ToInt32(nudWashTime.Value);
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
		this.groupBox1 = new System.Windows.Forms.GroupBox();
		this.txtConfig = new System.Windows.Forms.TextBox();
		this.dgvInstrument = new System.Windows.Forms.DataGridView();
		this.gbInject = new System.Windows.Forms.GroupBox();
		this.groupBox4 = new System.Windows.Forms.GroupBox();
		this.label12 = new System.Windows.Forms.Label();
		this.nudWashTime = new System.Windows.Forms.NumericUpDown();
		this.label13 = new System.Windows.Forms.Label();
		this.label14 = new System.Windows.Forms.Label();
		this.chkAutoSample = new System.Windows.Forms.CheckBox();
		this.groupBox2 = new System.Windows.Forms.GroupBox();
		this.label8 = new System.Windows.Forms.Label();
		this.label3 = new System.Windows.Forms.Label();
		this.nudNormal = new System.Windows.Forms.NumericUpDown();
		this.nudFast = new System.Windows.Forms.NumericUpDown();
		this.label2 = new System.Windows.Forms.Label();
		this.label1 = new System.Windows.Forms.Label();
		this.groupBox3 = new System.Windows.Forms.GroupBox();
		this.label9 = new System.Windows.Forms.Label();
		this.label10 = new System.Windows.Forms.Label();
		this.chkStable = new System.Windows.Forms.CheckBox();
		this.nudStableTime = new System.Windows.Forms.NumericUpDown();
		this.label6 = new System.Windows.Forms.Label();
		this.label7 = new System.Windows.Forms.Label();
		this.chkUptake = new System.Windows.Forms.CheckBox();
		this.nudUptake = new System.Windows.Forms.NumericUpDown();
		this.label5 = new System.Windows.Forms.Label();
		this.label4 = new System.Windows.Forms.Label();
		this.chkWash = new System.Windows.Forms.CheckBox();
		this.nudWash = new System.Windows.Forms.NumericUpDown();
		this.checkBox1 = new System.Windows.Forms.CheckBox();
		this.chk_AutoMisfire = new System.Windows.Forms.CheckBox();
		this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.groupBox1.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.dgvInstrument).BeginInit();
		this.gbInject.SuspendLayout();
		this.groupBox4.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.nudWashTime).BeginInit();
		this.groupBox2.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.nudNormal).BeginInit();
		((System.ComponentModel.ISupportInitialize)this.nudFast).BeginInit();
		this.groupBox3.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.nudStableTime).BeginInit();
		((System.ComponentModel.ISupportInitialize)this.nudUptake).BeginInit();
		((System.ComponentModel.ISupportInitialize)this.nudWash).BeginInit();
		base.SuspendLayout();
		this.groupBox1.Controls.Add(this.txtConfig);
		this.groupBox1.Controls.Add(this.dgvInstrument);
		this.groupBox1.Location = new System.Drawing.Point(16, 6);
		this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
		this.groupBox1.Name = "groupBox1";
		this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
		this.groupBox1.Size = new System.Drawing.Size(1242, 417);
		this.groupBox1.TabIndex = 3;
		this.groupBox1.TabStop = false;
		this.groupBox1.Text = "仪器条件设置";
		this.txtConfig.Location = new System.Drawing.Point(7, 390);
		this.txtConfig.Name = "txtConfig";
		this.txtConfig.ReadOnly = true;
		this.txtConfig.Size = new System.Drawing.Size(1224, 25);
		this.txtConfig.TabIndex = 2;
		this.txtConfig.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(txtConfig_MouseDoubleClick);
		this.dgvInstrument.AllowUserToAddRows = false;
		this.dgvInstrument.AllowUserToDeleteRows = false;
		this.dgvInstrument.AllowUserToResizeColumns = false;
		this.dgvInstrument.AllowUserToResizeRows = false;
		this.dgvInstrument.BackgroundColor = System.Drawing.SystemColors.Control;
		this.dgvInstrument.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
		this.dgvInstrument.ColumnHeadersVisible = false;
		this.dgvInstrument.Columns.AddRange(this.Column1, this.Column2, this.Column3, this.Column4, this.Column5, this.Column6, this.Column7, this.Column8, this.Column9, this.Column10);
		this.dgvInstrument.Location = new System.Drawing.Point(8, 25);
		this.dgvInstrument.Margin = new System.Windows.Forms.Padding(4);
		this.dgvInstrument.Name = "dgvInstrument";
		this.dgvInstrument.RowHeadersVisible = false;
		this.dgvInstrument.RowHeadersWidth = 51;
		dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
		this.dgvInstrument.RowsDefaultCellStyle = dataGridViewCellStyle1;
		this.dgvInstrument.RowTemplate.Height = 40;
		this.dgvInstrument.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
		this.dgvInstrument.Size = new System.Drawing.Size(1226, 358);
		this.dgvInstrument.TabIndex = 1;
		this.gbInject.Controls.Add(this.groupBox4);
		this.gbInject.Controls.Add(this.chkAutoSample);
		this.gbInject.Controls.Add(this.groupBox2);
		this.gbInject.Controls.Add(this.groupBox3);
		this.gbInject.Location = new System.Drawing.Point(13, 430);
		this.gbInject.Margin = new System.Windows.Forms.Padding(4);
		this.gbInject.Name = "gbInject";
		this.gbInject.Padding = new System.Windows.Forms.Padding(4);
		this.gbInject.Size = new System.Drawing.Size(1045, 265);
		this.gbInject.TabIndex = 4;
		this.gbInject.TabStop = false;
		this.gbInject.Text = "进样设置";
		this.groupBox4.Controls.Add(this.label12);
		this.groupBox4.Controls.Add(this.nudWashTime);
		this.groupBox4.Controls.Add(this.label13);
		this.groupBox4.Controls.Add(this.label14);
		this.groupBox4.Location = new System.Drawing.Point(740, 71);
		this.groupBox4.Margin = new System.Windows.Forms.Padding(4);
		this.groupBox4.Name = "groupBox4";
		this.groupBox4.Padding = new System.Windows.Forms.Padding(4);
		this.groupBox4.Size = new System.Drawing.Size(261, 181);
		this.groupBox4.TabIndex = 22;
		this.groupBox4.TabStop = false;
		this.groupBox4.Text = "自动进样";
		this.label12.AutoSize = true;
		this.label12.Location = new System.Drawing.Point(212, 40);
		this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label12.Name = "label12";
		this.label12.Size = new System.Drawing.Size(31, 15);
		this.label12.TabIndex = 6;
		this.label12.Text = "min";
		this.nudWashTime.Location = new System.Drawing.Point(99, 34);
		this.nudWashTime.Margin = new System.Windows.Forms.Padding(4);
		this.nudWashTime.Maximum = new decimal(new int[4] { 30, 0, 0, 0 });
		this.nudWashTime.Minimum = new decimal(new int[4] { 1, 0, 0, 0 });
		this.nudWashTime.Name = "nudWashTime";
		this.nudWashTime.Size = new System.Drawing.Size(105, 25);
		this.nudWashTime.TabIndex = 2;
		this.nudWashTime.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.nudWashTime.Value = new decimal(new int[4] { 3, 0, 0, 0 });
		this.nudWashTime.ValueChanged += new System.EventHandler(nudWashTime_ValueChanged);
		this.label13.AutoSize = true;
		this.label13.Location = new System.Drawing.Point(17, 94);
		this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label13.Name = "label13";
		this.label13.Size = new System.Drawing.Size(0, 15);
		this.label13.TabIndex = 1;
		this.label14.AutoSize = true;
		this.label14.Location = new System.Drawing.Point(16, 38);
		this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label14.Name = "label14";
		this.label14.Size = new System.Drawing.Size(75, 15);
		this.label14.TabIndex = 0;
		this.label14.Text = "冲洗时间:";
		this.chkAutoSample.AutoSize = true;
		this.chkAutoSample.Location = new System.Drawing.Point(63, 36);
		this.chkAutoSample.Margin = new System.Windows.Forms.Padding(4);
		this.chkAutoSample.Name = "chkAutoSample";
		this.chkAutoSample.Size = new System.Drawing.Size(89, 19);
		this.chkAutoSample.TabIndex = 21;
		this.chkAutoSample.Text = "自动进样";
		this.chkAutoSample.UseVisualStyleBackColor = true;
		this.chkAutoSample.CheckedChanged += new System.EventHandler(chkAutoSample_CheckedChanged);
		this.chkAutoSample.CheckStateChanged += new System.EventHandler(chkAutoSample_CheckStateChanged);
		this.groupBox2.Controls.Add(this.label8);
		this.groupBox2.Controls.Add(this.label3);
		this.groupBox2.Controls.Add(this.nudNormal);
		this.groupBox2.Controls.Add(this.nudFast);
		this.groupBox2.Controls.Add(this.label2);
		this.groupBox2.Controls.Add(this.label1);
		this.groupBox2.Location = new System.Drawing.Point(471, 71);
		this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
		this.groupBox2.Name = "groupBox2";
		this.groupBox2.Padding = new System.Windows.Forms.Padding(4);
		this.groupBox2.Size = new System.Drawing.Size(261, 181);
		this.groupBox2.TabIndex = 20;
		this.groupBox2.TabStop = false;
		this.groupBox2.Text = "蠕动泵";
		this.label8.AutoSize = true;
		this.label8.Location = new System.Drawing.Point(185, 92);
		this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label8.Name = "label8";
		this.label8.Size = new System.Drawing.Size(47, 15);
		this.label8.TabIndex = 7;
		this.label8.Text = "r/min";
		this.label3.AutoSize = true;
		this.label3.Location = new System.Drawing.Point(185, 38);
		this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label3.Name = "label3";
		this.label3.Size = new System.Drawing.Size(47, 15);
		this.label3.TabIndex = 6;
		this.label3.Text = "r/min";
		this.nudNormal.Location = new System.Drawing.Point(72, 90);
		this.nudNormal.Margin = new System.Windows.Forms.Padding(4);
		this.nudNormal.Maximum = new decimal(new int[4] { 80, 0, 0, 0 });
		this.nudNormal.Name = "nudNormal";
		this.nudNormal.Size = new System.Drawing.Size(105, 25);
		this.nudNormal.TabIndex = 3;
		this.nudNormal.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.nudNormal.ValueChanged += new System.EventHandler(nudNormal_ValueChanged);
		this.nudFast.Location = new System.Drawing.Point(71, 34);
		this.nudFast.Margin = new System.Windows.Forms.Padding(4);
		this.nudFast.Maximum = new decimal(new int[4] { 80, 0, 0, 0 });
		this.nudFast.Name = "nudFast";
		this.nudFast.Size = new System.Drawing.Size(105, 25);
		this.nudFast.TabIndex = 2;
		this.nudFast.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.nudFast.ValueChanged += new System.EventHandler(nudFast_ValueChanged);
		this.label2.AutoSize = true;
		this.label2.Location = new System.Drawing.Point(17, 94);
		this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label2.Name = "label2";
		this.label2.Size = new System.Drawing.Size(45, 15);
		this.label2.TabIndex = 1;
		this.label2.Text = "正常:";
		this.label1.AutoSize = true;
		this.label1.Location = new System.Drawing.Point(16, 38);
		this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(45, 15);
		this.label1.TabIndex = 0;
		this.label1.Text = "提升:";
		this.groupBox3.Controls.Add(this.label9);
		this.groupBox3.Controls.Add(this.label10);
		this.groupBox3.Controls.Add(this.chkStable);
		this.groupBox3.Controls.Add(this.nudStableTime);
		this.groupBox3.Controls.Add(this.label6);
		this.groupBox3.Controls.Add(this.label7);
		this.groupBox3.Controls.Add(this.chkUptake);
		this.groupBox3.Controls.Add(this.nudUptake);
		this.groupBox3.Controls.Add(this.label5);
		this.groupBox3.Controls.Add(this.label4);
		this.groupBox3.Controls.Add(this.chkWash);
		this.groupBox3.Controls.Add(this.nudWash);
		this.groupBox3.Location = new System.Drawing.Point(20, 71);
		this.groupBox3.Margin = new System.Windows.Forms.Padding(4);
		this.groupBox3.Name = "groupBox3";
		this.groupBox3.Padding = new System.Windows.Forms.Padding(4);
		this.groupBox3.Size = new System.Drawing.Size(443, 181);
		this.groupBox3.TabIndex = 19;
		this.groupBox3.TabStop = false;
		this.groupBox3.Text = "进样";
		this.label9.AutoSize = true;
		this.label9.Location = new System.Drawing.Point(381, 148);
		this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label9.Name = "label9";
		this.label9.Size = new System.Drawing.Size(15, 15);
		this.label9.TabIndex = 20;
		this.label9.Text = "s";
		this.label10.Location = new System.Drawing.Point(160, 148);
		this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label10.Name = "label10";
		this.label10.Size = new System.Drawing.Size(100, 15);
		this.label10.TabIndex = 19;
		this.label10.Text = "时间：";
		this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.chkStable.AutoSize = true;
		this.chkStable.Enabled = false;
		this.chkStable.Location = new System.Drawing.Point(43, 146);
		this.chkStable.Margin = new System.Windows.Forms.Padding(4);
		this.chkStable.Name = "chkStable";
		this.chkStable.Size = new System.Drawing.Size(59, 19);
		this.chkStable.TabIndex = 18;
		this.chkStable.Text = "稳定";
		this.chkStable.UseVisualStyleBackColor = true;
		this.chkStable.CheckedChanged += new System.EventHandler(chkStable_CheckedChanged);
		this.nudStableTime.Location = new System.Drawing.Point(268, 142);
		this.nudStableTime.Margin = new System.Windows.Forms.Padding(4);
		this.nudStableTime.Minimum = new decimal(new int[4] { 5, 0, 0, 0 });
		this.nudStableTime.Name = "nudStableTime";
		this.nudStableTime.Size = new System.Drawing.Size(105, 25);
		this.nudStableTime.TabIndex = 17;
		this.nudStableTime.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.nudStableTime.Value = new decimal(new int[4] { 5, 0, 0, 0 });
		this.nudStableTime.ValueChanged += new System.EventHandler(nudStableTime_ValueChanged);
		this.label6.AutoSize = true;
		this.label6.Location = new System.Drawing.Point(381, 90);
		this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label6.Name = "label6";
		this.label6.Size = new System.Drawing.Size(15, 15);
		this.label6.TabIndex = 16;
		this.label6.Text = "s";
		this.label7.Location = new System.Drawing.Point(160, 92);
		this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label7.Name = "label7";
		this.label7.Size = new System.Drawing.Size(100, 15);
		this.label7.TabIndex = 15;
		this.label7.Text = "时间：";
		this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.chkUptake.AutoSize = true;
		this.chkUptake.Location = new System.Drawing.Point(43, 90);
		this.chkUptake.Margin = new System.Windows.Forms.Padding(4);
		this.chkUptake.Name = "chkUptake";
		this.chkUptake.Size = new System.Drawing.Size(59, 19);
		this.chkUptake.TabIndex = 14;
		this.chkUptake.Text = "提升";
		this.chkUptake.UseVisualStyleBackColor = true;
		this.chkUptake.CheckedChanged += new System.EventHandler(chkUptake_CheckedChanged);
		this.nudUptake.Location = new System.Drawing.Point(268, 86);
		this.nudUptake.Margin = new System.Windows.Forms.Padding(4);
		this.nudUptake.Name = "nudUptake";
		this.nudUptake.Size = new System.Drawing.Size(105, 25);
		this.nudUptake.TabIndex = 13;
		this.nudUptake.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.nudUptake.ValueChanged += new System.EventHandler(nudUptake_ValueChanged);
		this.label5.AutoSize = true;
		this.label5.Location = new System.Drawing.Point(381, 38);
		this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label5.Name = "label5";
		this.label5.Size = new System.Drawing.Size(15, 15);
		this.label5.TabIndex = 12;
		this.label5.Text = "s";
		this.label4.Location = new System.Drawing.Point(160, 34);
		this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label4.Name = "label4";
		this.label4.Size = new System.Drawing.Size(100, 15);
		this.label4.TabIndex = 11;
		this.label4.Text = "时间：";
		this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.chkWash.AutoSize = true;
		this.chkWash.Location = new System.Drawing.Point(43, 36);
		this.chkWash.Margin = new System.Windows.Forms.Padding(4);
		this.chkWash.Name = "chkWash";
		this.chkWash.Size = new System.Drawing.Size(59, 19);
		this.chkWash.TabIndex = 10;
		this.chkWash.Text = "冲洗";
		this.chkWash.UseVisualStyleBackColor = true;
		this.chkWash.CheckedChanged += new System.EventHandler(chkWash_CheckedChanged);
		this.nudWash.Location = new System.Drawing.Point(268, 33);
		this.nudWash.Margin = new System.Windows.Forms.Padding(4);
		this.nudWash.Name = "nudWash";
		this.nudWash.Size = new System.Drawing.Size(105, 25);
		this.nudWash.TabIndex = 8;
		this.nudWash.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.nudWash.ValueChanged += new System.EventHandler(nudWash_ValueChanged);
		this.checkBox1.AutoSize = true;
		this.checkBox1.Location = new System.Drawing.Point(13, 714);
		this.checkBox1.Margin = new System.Windows.Forms.Padding(4);
		this.checkBox1.Name = "checkBox1";
		this.checkBox1.Size = new System.Drawing.Size(119, 19);
		this.checkBox1.TabIndex = 11;
		this.checkBox1.Text = "剔除异常数据";
		this.checkBox1.UseVisualStyleBackColor = true;
		this.checkBox1.CheckedChanged += new System.EventHandler(checkBox1_CheckedChanged);
		this.chk_AutoMisfire.AutoSize = true;
		this.chk_AutoMisfire.Location = new System.Drawing.Point(196, 714);
		this.chk_AutoMisfire.Margin = new System.Windows.Forms.Padding(4);
		this.chk_AutoMisfire.Name = "chk_AutoMisfire";
		this.chk_AutoMisfire.Size = new System.Drawing.Size(89, 19);
		this.chk_AutoMisfire.TabIndex = 12;
		this.chk_AutoMisfire.Text = "自动熄火";
		this.chk_AutoMisfire.UseVisualStyleBackColor = true;
		this.chk_AutoMisfire.CheckedChanged += new System.EventHandler(btn_AutoMisfire_CheckedChanged);
		this.dataGridViewTextBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn1.HeaderText = "Column1";
		this.dataGridViewTextBoxColumn1.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
		this.dataGridViewTextBoxColumn1.ReadOnly = true;
		this.dataGridViewTextBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn2.HeaderText = "Column2";
		this.dataGridViewTextBoxColumn2.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
		this.dataGridViewTextBoxColumn2.ReadOnly = true;
		this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn3.HeaderText = "Column3";
		this.dataGridViewTextBoxColumn3.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
		this.dataGridViewTextBoxColumn3.ReadOnly = true;
		this.dataGridViewTextBoxColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn4.HeaderText = "Column4";
		this.dataGridViewTextBoxColumn4.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
		this.dataGridViewTextBoxColumn4.ReadOnly = true;
		this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn5.HeaderText = "Column5";
		this.dataGridViewTextBoxColumn5.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
		this.dataGridViewTextBoxColumn5.ReadOnly = true;
		this.dataGridViewTextBoxColumn6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn6.HeaderText = "Column6";
		this.dataGridViewTextBoxColumn6.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
		this.dataGridViewTextBoxColumn6.ReadOnly = true;
		this.dataGridViewTextBoxColumn7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn7.HeaderText = "Column7";
		this.dataGridViewTextBoxColumn7.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
		this.dataGridViewTextBoxColumn7.ReadOnly = true;
		this.dataGridViewTextBoxColumn8.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn8.HeaderText = "Column8";
		this.dataGridViewTextBoxColumn8.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
		this.dataGridViewTextBoxColumn8.ReadOnly = true;
		this.dataGridViewTextBoxColumn9.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn9.HeaderText = "Column9";
		this.dataGridViewTextBoxColumn9.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
		this.dataGridViewTextBoxColumn9.ReadOnly = true;
		this.dataGridViewTextBoxColumn10.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn10.HeaderText = "Column10";
		this.dataGridViewTextBoxColumn10.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
		this.dataGridViewTextBoxColumn10.ReadOnly = true;
		this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column1.HeaderText = "Column1";
		this.Column1.MinimumWidth = 6;
		this.Column1.Name = "Column1";
		this.Column1.ReadOnly = true;
		this.Column2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column2.HeaderText = "Column2";
		this.Column2.MinimumWidth = 6;
		this.Column2.Name = "Column2";
		this.Column2.ReadOnly = true;
		this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column3.HeaderText = "Column3";
		this.Column3.MinimumWidth = 6;
		this.Column3.Name = "Column3";
		this.Column3.ReadOnly = true;
		this.Column4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column4.HeaderText = "Column4";
		this.Column4.MinimumWidth = 6;
		this.Column4.Name = "Column4";
		this.Column4.ReadOnly = true;
		this.Column5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column5.HeaderText = "Column5";
		this.Column5.MinimumWidth = 6;
		this.Column5.Name = "Column5";
		this.Column5.ReadOnly = true;
		this.Column6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column6.HeaderText = "Column6";
		this.Column6.MinimumWidth = 6;
		this.Column6.Name = "Column6";
		this.Column6.ReadOnly = true;
		this.Column7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column7.HeaderText = "Column7";
		this.Column7.MinimumWidth = 6;
		this.Column7.Name = "Column7";
		this.Column7.ReadOnly = true;
		this.Column8.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column8.HeaderText = "Column8";
		this.Column8.MinimumWidth = 6;
		this.Column8.Name = "Column8";
		this.Column8.ReadOnly = true;
		this.Column9.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column9.HeaderText = "Column9";
		this.Column9.MinimumWidth = 6;
		this.Column9.Name = "Column9";
		this.Column9.ReadOnly = true;
		this.Column10.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column10.HeaderText = "Column10";
		this.Column10.MinimumWidth = 6;
		this.Column10.Name = "Column10";
		this.Column10.ReadOnly = true;
		base.AutoScaleDimensions = new System.Drawing.SizeF(8f, 15f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(1345, 745);
		base.Controls.Add(this.chk_AutoMisfire);
		base.Controls.Add(this.checkBox1);
		base.Controls.Add(this.gbInject);
		base.Controls.Add(this.groupBox1);
		base.Margin = new System.Windows.Forms.Padding(4);
		base.Name = "FormConfig";
		base.ShowIcon = false;
		this.Text = "FormConfig";
		base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(FormConfig_FormClosing);
		base.Load += new System.EventHandler(FormConfig_Load);
		this.groupBox1.ResumeLayout(false);
		this.groupBox1.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.dgvInstrument).EndInit();
		this.gbInject.ResumeLayout(false);
		this.gbInject.PerformLayout();
		this.groupBox4.ResumeLayout(false);
		this.groupBox4.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.nudWashTime).EndInit();
		this.groupBox2.ResumeLayout(false);
		this.groupBox2.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.nudNormal).EndInit();
		((System.ComponentModel.ISupportInitialize)this.nudFast).EndInit();
		this.groupBox3.ResumeLayout(false);
		this.groupBox3.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.nudStableTime).EndInit();
		((System.ComponentModel.ISupportInitialize)this.nudUptake).EndInit();
		((System.ComponentModel.ISupportInitialize)this.nudWash).EndInit();
		base.ResumeLayout(false);
		base.PerformLayout();
	}
}
